package com.xzg.argumentResolver;

import java.lang.reflect.Method;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.xzg.annotation.XzgService;
@XzgService("HttpServletResponseArgumentResolver")
public class HttpServletResponseArgumentResolver implements ArgumentResolver {

	public Boolean support(Class<?> type, int index, Method method) {
		return HttpServletResponse.class.isAssignableFrom(type);
	}

	public Object argumentResolver(Class<?> type, int index, Method method, HttpServletRequest request,
			HttpServletResponse response) {
		return response;
	}

}
